//
//  ZZLabel.h
//  ZhiYiBao
//
//  Created by czz on 2017/3/1.
//  Copyright © 2017年 athena. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NSString+ZZSize.h"

@class ZZLabel;

@protocol ZZLabelDelegate <NSObject>

-(void)zzLabelViewChanged:(ZZLabel *)label;

@end

@interface ZZLabel : UILabel

/**
 是否settext后修改frame 的高度
 */
@property (assign ,nonatomic) BOOL isChangeHeightWithSetText;

/**
 最大计算高度
 */
@property (assign ,nonatomic) float maxHeight;

/**
 高度计算完成 增加量
 */
@property (assign ,nonatomic) float moreHeightWillChange;

@property (assign ,nonatomic) BOOL isChangeWidthWithSetText;
@property (assign ,nonatomic) float maxWidth;
@property (assign ,nonatomic) float moreWidthWillChange;

@property (strong ,nonatomic) id<ZZLabelDelegate> delegate;
@property (strong ,nonatomic) void(^viewChangedBlock)(ZZLabel *label);

@end
